import 'package:dio/dio.dart';
import 'package:flutter/cupertino.dart';

var dio = Dio();

class Apis {
  static getInfo(String ip, String port) async {
    try {
      var response = await Dio().get<String>('http://$ip:$port/HardwareInfo');
      return response;
    } catch (e) {
      print(e);
    }
  }

  static getProcess(String ip, String port) async {
    try {
      var response = await Dio().get<String>('http://$ip:$port/Process');
      return response;
    } catch (e) {
      print(e);
    }
  }

  postShell(String str) async {}
}
